<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="author" content="wangbo" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>图片对齐方式</title>
		<style>
			img,
			form {
				width: 200px;
				height: 200px;
        /* 默认基线对齐 abc 单词所在的线 baseline
        bottom 图片的底部就会和文件相互对齐,
        top 文字会在图片的顶部
        middle 中间对齐
        */
        vertical-align:middle
        }
		</style>
	</head>
	<body>
		<!-- img,input,行内块 form是块元素 -->
		<img src="./tudou.jpg" alt="土豆网" />
		水电费大丰
	</body>
</html>
